﻿using System;

namespace Library.OrmEnterpriseEntity.TableInfo {
	///<summary>
	///</summary>
	public class AnsiColumn : StringColumn {

		internal static readonly Type AnsiColumnType = typeof(AnsiColumn);


		///<summary>
		///</summary>
		///<param name="metadata"></param>
		///<param name="table"></param>
		public AnsiColumn(StringColumnView metadata, DbTable table)
			: base(metadata, table) {

		}

		//public override System.Data.DbType DbType {
		//  get { return System.Data.DbType.AnsiString; }
		//}
		///<summary>
		///</summary>
		///<param name="value"></param>
		///<returns></returns>
		public static implicit operator AnsiColumn(string value) {
			if (value == null) value = String.Empty;
			return new AnsiColumn(AnsiColumnView.Null, DbTable.Null) { Value = value };
		}

	}
}
